﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Huirui.Cavan.Domain.MainBoundedContext.PurchaseModule;
using Huirui.Cavan.Domain.MainBoundedContext.ReportModule;
using Huirui.Cavan.Domain.MainBoundedContext.SearchModule;
using Huirui.Cavan.Presentation.Seedwork;
using Huirui.Cavan.Domain.MainBoundedContext.SystemModule;
using System.Web.Mvc;

namespace Huirui.Cavan.Presentation.ViewModel.PurchaseModule
{
    public class PayViewModel : EntityModel<Pay, string, PaySearch>, IPayViewModel
    {
        public string PayDetails { get; set; }
        public decimal UnPaid { get; set; }
        public UnPaySearch UnPaySearch { get; set; }
        public IList<SelectListItem> Currencies { get; set; }

        public PayViewModel()
        {
            this.Currencies = new List<SelectListItem>();
            this.Item = new Pay();
        }
    }

    public class PayJson : BaseJson<string>
    {
        public string Currency { get; set; }
        public decimal CurrencyRate { get; set; }
        public string Remark { get; set; }
        public string EmployeeCode { get; set; }
        public string EmployeeName { get; set; }
        public string SupplierCode { get; set; }
        public string SupplierName { get; set; }
        public string PayDate { get; set; }
        public decimal Amount { get; set; }
        public string Producer { get; set; }
        public string AccountCode { get; set; }
        public string AccountName { get; set; }
        public string AccountNumber { get; set; }
    }

    public class PayJsonViewModel : JsonViewModel<PayJson>
    {
    }

    public class UnPayAndPayReportViewModel : JsonViewModel<UnPayAndPayReport>
    { 
    }
}
